BACK EMAIL HOME GROUP 4 UPDATES BY HOME GROUP 3#10
Open
jubuenor wants to merge 8 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why this PR?
The original code presented improvement opportunities, which we identified and implemented. Specifically, the project's front end underwent updates in ESLint, Docker, Nginx integration, and CI/CD pipelines, while the backend addressed technical issues and standardized modules. Emphasizing infrastructure as code (IAC) with tools like Terraform and Ansible enhances scalability and operational efficiency for evolving businesses.
What Changed?
Frontend Changes Overview
.dockerignorefile, which included various Python, Git, and environment-specific files to ignore during Docker builds..eslintrc.cjsfocusing on TypeScript and React rules..github/workflows/cd.ymland.github/workflows/ci.yml.Dockerfilefor optimizing the build process.docker-compose.ymlfile for defining and running multi-container Docker applications, setting up the project with specific ports and environment variables.default.conffile.index.htmlto serve as the entry point for the web application, including references to the main JavaScript file and the project's title.package.json, including changes to project name, version, scripts, dependencies, and development dependencies.postcss.config.jsfor PostCSS configuration, enabling plugins like Tailwind CSS and Autoprefixer.ComposeView.tsx,InboxView.tsx,Message.tsx, etc.) for improvements and removal of unused imports.SelectedEmailContext.tsx,UserContext.tsx, etc.) and icon components to clean up imports and code structure.src/api.tsto point to new backend endpoints.src/index.tsxtosrc/main.tsxand addition ofsrc/vite-env.d.tsfor Vite-specific types.start.shfor setting up environment variables and starting Nginx in Docker containers.tailwind.config.jsfor simplifying the setup.tsconfig.jsonand addedtsconfig.node.jsonfor specific settings related to Node.js environments.vite.config.tsfor customizing the build process and integrating React with SWC.Backend Changes Overview
MyUserManagerclass to encrypt the password.service_send_emailcode is simplified by validating the code with try and exceptDocker composeis updated and the creation of the db is skippedpythondecouple` is installed to manage the enviroments variables.dockerignoreis update with .env fileSettingupdate to add the new DNS and connections to the database located in AWSIAC Implementation Overview
Infrastructure as Code (IAC) implementation with Terraform and Ansible offers numerous benefits for businesses, including streamlined deployment, enhanced performance, and cost savings. By automating infrastructure provisioning and management, organizations can achieve greater efficiency, scalability, and agility in their operations. Regular monitoring and optimization are essential for maximizing the effectiveness of the implemented solution and ensuring ongoing success.